home *** CD-ROM | disk | FTP | other *** search
- package com.ms.awt;
-
- import com.ms.awt.peer.ComponentPeerX;
- import java.awt.Component;
- import java.awt.Point;
- import java.awt.peer.ComponentPeer;
-
- public class CaretX {
- private Component theComponent;
- private int hwnd;
- private boolean visible;
- private int width;
- private int height;
- // $FF: renamed from: x int
- private int field_0;
- // $FF: renamed from: y int
- private int field_1;
-
- public void hide() {
- this.visible = false;
- this.pHide(this.hwnd);
- }
-
- public CaretX(Component var1, int var2, int var3) {
- this.theComponent = var1;
- ComponentPeer var4 = var1.getPeer();
- ComponentPeerX var5 = (ComponentPeerX)var4;
- this.hwnd = var5.gethwnd();
- this.width = var2;
- this.height = var3;
- this.pCreate(this.hwnd, var2, var3);
- }
-
- public void finalize() {
- this.pDispose();
- }
-
- private native void pSetPos(int var1, int var2);
-
- public void setPos(Point var1) {
- this.setPos(var1.x, var1.y);
- }
-
- public void setPos(int var1, int var2) {
- this.field_0 = var1;
- this.field_1 = var2;
- this.pSetPos(this.field_0, this.field_1);
- }
-
- private native void pDispose();
-
- private native void pShow(int var1);
-
- public void show() {
- this.visible = true;
- this.pShow(this.hwnd);
- }
-
- private native void pCreate(int var1, int var2, int var3);
-
- private native void pHide(int var1);
- }
-